<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>document类型</title>
</head>
<body>
  <form action=""></form>
  <form action=""></form>
  <form action=""></form>
  <img src="" alt=""><img src="" alt=""><img src="" alt="">
  <a href=""></a><a href=""></a><a></a>
  <script>
    console.log(document.documentElement,'获取html元素');
    console.log(document.body,'获取body标签');
    console.log(document.title,'获取文档选项卡标题');
    console.log(document.URL,'获取文档地址 路径');
    console.log(document.domain,'获取文档域名');
    console.log(document.referrer,'获取页面来源');
    console.log(document.forms,'获取页面中所有的form标签');
    console.log(document.images,'获取页面中所有img标签');
    console.log(document.links,'获取所有带有href属性标签');
    console.log(document.doctype,'获取doctype文档头声明');
  </script>
</body>
</html>